package com.yuncha.scripture.seeking.demo.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author fengjiangtao
 * @version 1.0
 * @desc
 * @date 2025-02-17 11:11:22
 */
@Slf4j
@Controller
@RequestMapping("/welcome/")
public class WelcomeController {

    @GetMapping("/test1")
    @ResponseBody
    public String test1(@RequestParam String param) {
        log.error(">>>>>param is {}", param);
        return "ok";
    }


    @GetMapping("/test2")
    public String test2() {
        log.error(">>>>>param is test2");
        return "index";
    }

    @GetMapping("/test3")
    public String test3() {
        log.error(">>>>>param is test3");
        return "hello";
    }

}
